home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / ScreenSavers / BackSpaceViews / DigitalClockView.BackModule / DigitalClockView.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  55 lines

  1. //
  2. // DigitalClock
  3. //
  4. // Module for BackSpace.app
  5. // rev 1.2 11 Dec 1991
  6. // rev 1.3 20 Aug 1992
  7. //
  8. // Matt Pharr- pharr@cs.yale.edu
  9. // NeXTMail Welcome
  10. //
  11.  
  12. #import <appkit/appkit.h>
  13. #import "Thinker.h"
  14.  
  15. @interface DigitalClockView:View
  16. {
  17.     NXPoint currentLocation;    /* current location of the bitmap */
  18.     NXPoint moveVector;         /* not a point, but a vector that describes how
  19.                                    the bitmap is moving... */
  20.  
  21.     char theTime[14];           /* the current time, in string form "hh:mm:ss" */
  22.     char lastTime[14];          /* the time the last time oneStep was called */
  23.     
  24.     NXSize currentSize;         /* the size of the bitmap */
  25.     id currentImage;            /* the bitmap itself that holds the drawing of 
  26.                                    the time  */
  27.     id theFont;
  28.     float currR, currG, currB;
  29.     id sharedInspectorPanel;
  30.     float clockSize;
  31.     float bounceMultiplier;
  32.     BOOL militaryTime;
  33.     BOOL didShorten;            /* set to YES when a time like 01:22:34 PM is
  34.                                  * shortented to 1:22:34 PM. This way, the fact
  35.                                  * that we allocated some now unused real estate
  36.                                  * in the bitmap doesn't matter, due to some
  37.                                  * minor kludges in the fixPosition and
  38.                                  * bounceIfNeeded methods.
  39.                                  */
  40.     BOOL isNew;
  41.     id speedSlider;
  42.     id sizeSlider;
  43.     id militarySwitch;
  44. }
  45.  
  46. -oneStep;
  47. -drawSelf:(const NXRect *)rects :(int)rectCount;
  48. -initFrame:(const NXRect *)frameRect;
  49. -setClockSize:sender;
  50. -setBounceMultiplier:sender;
  51. -setMilitaryTime:sender;
  52. -inspector:sender;
  53.  
  54. @end
  55.